$(function() {
	$("#form").validate({
		rules : {
			"contractpledge.pledgetype" : {required : true},
			"contractpledge.pledgemoney" : {required : true,number:true},
			"contractpledge.start" : {required : true},
			"contractpledge.end" : {required : true},
			"contractpledge.contractensuredate" : {required : true},
		},
			messages : {
			"contractpledge.pledgetype" : {required : '请选择合同类型!'},
			"contractpledge.pledgemoney" : {required:'请输入质押金额!',number:"质押金额只能为数字！"},
			"contractpledge.start" : {required : '请选择合同开始日期!'},
			"contractpledge.end" : {required : '请选择合同终止日期!'},
			"contractpledge.contractensuredate" : {required : '请选择合同签订日期!'},
		}
	});
})
